package edu.zut.hb.software.admin.service.impl;

import edu.zut.hb.software.admin.dao.GroupDao;
import edu.zut.hb.software.admin.domain.Group;
import edu.zut.hb.software.admin.service.GroupService;
import edu.zut.hb.software.base.service.impl.GenericTreeManagerImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service
@Transactional
public class GroupServiceImpl extends GenericTreeManagerImpl<Group, Long> implements GroupService {
    GroupDao groupDao;

    @Autowired
    public void setGroupDao(GroupDao groupDao) {
        this.groupDao = groupDao;
        this.treeDao=groupDao;
        this.dao=treeDao;
    }
}
